# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-libcreg-python
_pkgname=libcreg-python
pkgver=20240419
pkgrel=3
pkgdesc='Python bindings module for libcreg.'
url='https://pypi.org/project/libcreg-python/'
arch=('x86_64' 'aarch64')
license=('LGPL3')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('3e212c5e014bea7a62ba67ee1eed78da0ed6fbdbdac8847bfb95df928ba983c71da2c9bc3f3617b21d4227d0d319a7ae36ff5d0ecd04ca0bc68d771274325df9')

build() {
  cd "libcreg-$pkgver"

  python setup.py build
}

package() {
  cd "libcreg-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

